package com.coolingme.genericity;

/**
 * String类
 *
 * @author wangyue
 * @date 2019/4/4 10:25
 */
public class GString {

    public GString(String name) {
        this.name = name;
    }

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void hello() {
        System.out.println("name的类型为:" + name.getClass().getName());
    }

    @Override
    public String toString() {
        return "GString{" +
                "name='" + name + '\'' +
                '}';
    }
}
